{extend name="public:layout" /}
{block name="title"}山西海威旅游汽车服务有限公司派车单{/block}
{block name="head"}
<style>
	.table-bordered{border:1px solid #000;}
	.table > tbody > tr > td{padding:2px;font-size:12px;text-align:center;border:1px solid #000;}
</style>
<style  media="print">
	.Noprint   {   DISPLAY:   none;}
	.PageNext   {   PAGE-BREAK-AFTER:   always   }
</style>
{/block}
{block name="body"}
<div class="wrapper wrapper-content">
	<div class="ibox-title Noprint">
		<ol class="breadcrumb">
			<li>
				<i class="fa fa-hand-o-right"></i>
				<a href="{:url('index',['mid'=>$Request.param.mid])}">{$moudleName}列表</a>
			</li>
			<li class="active">{$moudleName}</li>
		</ol>
	</div>
	<div class="ibox-content" style="width:680px;height:500px;padding:30px;box-sizing: border-box">
		<h2 class="text-center" style="font-size:14px;">山西海威旅游汽车服务有限公司派车单</h2>
		<div class="clearfix" style="font-size:12px;">
			<span class="pull-left">{:date('Y',strtotime($info.order_start_time))} 年 {:date('m',strtotime($info.order_start_time))} 月 {:date('d',strtotime($info.order_start_time))} 日</span>
			<span class="pull-right">编号：{$info.order_odd}</span>
		</div>
		<div class="table-responsive">
			{php}
			$driverList= explode(',',$info['fleet_driver_ids']);
			{/php}
			<table class="table table-bordered print-table" style="table-layout:fixed;width:100%;border:1px solid #000">
				<tr>
					<td  width="55">车号</td>
					<td  width="130">{$info.car_sn}</td>
					<td  width="50">座位数</td>
					<td  width="50">{:get_field_value('car','car_seat',['car_sn'=>$info.car_sn])}</td>
					<td rowspan="2"  width="60">司机</td>
					<td  width="70">{:get_field_value('car_driver','title',['aid'=>$driverList[0]])}</td>
					<td rowspan="2" width="55">联系方式</td>
					<td width="70">{:get_field_value('car_driver','dri_phone',['aid'=>$driverList[0]])}</td>
				</tr>
				<tr>
					<td >用车单位</td>
					<td >{$info.order_company}</td>
					<td >联系人</td>
					<td >{$info.order_client}</td>
					<td >{:get_field_value('car_driver','title',['aid'=>$driverList[1]])}</td>
					<td class="table-con2">{:get_field_value('car_driver','dri_phone',['aid'=>$driverList[1]])}</td>
				</tr>
				<tr>
					<td >联系电话</td>
					<td colspan="3">{$info.order_phone}</td>
					<td >导游姓名</td>
					<td >{$info.guide}</td>
					<td >电话</td>
					<td class="table-con2">{$info.guide_tel}</td>
				</tr>
				<tr>
					<td >起止日期</td>
					<td >
						{:date('Y-m-d',strtotime($info.order_start_time))}至{:date('Y-m-d',strtotime($info.order_end_time))}
					</td>
					<td >天数</td>
					<td >
					{php}
						echo ceil((strtotime($info['order_end_time'])-strtotime($info['order_start_time']))/86400);
					{/php}
					</td>
					<td >接团时间</td>
					<td >{:date('m-d H:i',strtotime($info.begin_time))}</td>
					<td >接团地点</td>
					<td class="table-con2">{$info.order_start_adress}</td>
				</tr>
				<tr>
					<td >行程路线</td>
					<td colspan="7">{$info.order_start_adress}-{$info.order_end_adress}</td>
				</tr>
			</table>
			<table class="table table-bordered"  style="table-layout:fixed;width:100%;border-top:none;">
				<tr>
					<td >车费</td>
					<td >{$info.order_charge}</td>
					<td >结算方式</td>
					<td width="40">{$info.order_pay_type}</td>
					<td >定金</td>
					<td >{$info.order_advance}</td>
					<td >服务费</td>
					<td>{$info.order_service}</td>
				</tr>
				<tr>
					<td >现收</td>
					<td >{$info.order_pay}</td>
					<td >转账</td>
					<td width="40"></td>
					<td >过路费</td>
					<td >{$info.order_tolls}</td>
					<td >停车费</td>
					<td >{$info.order_stop}</td>
				</tr>
				<tr>
					<td >待收</td>
					<td >{$info.order_q}</td>
					<td >加油费</td>
					<td width="40">{$info.order_fuel}</td>
					<td >升数</td>
					<td >{$info.order_l}</td>
					<td >食宿</td>
					<td >{$info.order_eat}</td>
				</tr>
				<tr>
					<td >其他</td>
					<td colspan="2">{$info.order_other}</td>
					<td >优惠金额</td>
					<td colspan="2">{$info.discount_money}</td>
					<td >结余</td>
					<td width="80">{$info.order_bala}</td>
				</tr>
				<tr>
					<td >出车时间</td>
					<td colspan="3">
                        {$info.order_start_time}
					</td>
					<td >收车时间</td>
					<td colspan="3">
                        {$info.order_end_time}
					</td>
				</tr>
				<tr>
					<td >始发里程</td>
					<td >{$info.order_start_mm}</td>
					<td >结束路程</td>
					<td >{$info.order_end_mm}</td>
					<td >行驶里程</td>
					<td colspan="3">{$info['order_end_mm']-$info['order_start_mm']}</td>
				</tr>
				<tr>
					<td >乘客意见</td>
					<td width="90" colspan="4"></td>
					<td >司机签字</td>
					<td colspan="2"></td>
				</tr>
				<tr><td >派车备注</td>
					<td colspan="3">{$info.fleet_desc}</td>
					<td >结算备注</td>
					<td colspan="3">{$info.order_remark}</td>
				</tr>
				<tr>
					<td class="text-right">预订:</td>
					<td>{$info.pre_name}</td>
					<td class="text-right">计调:</td>
					<td>{:get_field_value('user','name',['uid'=>$info['uid']])}</td>
					<td class="text-right">结算:</td>
					<td>{$info.reckoner}</td>
					<td class="text-right">清算:</td>
					<td>{$info.square}</td>
				</tr>
			</table>
		</div>
		<p style="margin-top:10px;">地址：晋中市魏榆路侯方新村  联系电话：0354-3998700</p>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    window.print();
</script>
{/block}
